package com.ybf.api.builder;

import lombok.Data;

@Data
public class Table {
    private String columnName;
    private String columnNameBase;
    private Integer dataType;
    private String typeName;
    private Integer columnSize;
    // 0 = NO NULLS, 1 = NULLS ALLOWED
    private Integer nullable;
    private String remarks;

    public Table(String columnName, String columnNameBase, String typeName, int columnSize, int nullable, String remarks, Integer dataType) {
        this.setColumnName(columnName);
        this.setColumnNameBase(columnNameBase);
        this.setDataType(dataType);
        this.setTypeName(typeName);
        this.setColumnSize(columnSize);
        this.setNullable(nullable);
        this.setRemarks(remarks);
    }
}
